package com.example.coffeejava.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("cart")
public class Cart {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long infoId;
    private Long userId;
    private Integer num;
    private Integer price;
    @TableField(exist = false)
    private String infoName;
    @TableField(exist = false)
    private String infoImage;

}
